import request from '@/config/axios'

//查看微圈数据
export const getVcirce = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/SyteacherSelController/ForumTab', params })
}
//查看微圈审核
export const getShenhe = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/SyteacherSelController/ForumExam', params })
}
//查询所有微圈分类赋值给下拉菜单
export const getxialacaidan = () => {
  return request.post({ url: '/api/SyteacherSelController/selActicleCategraySelect' })
}
//查看详情  // 选择传参的数据类型、传的是（id）number类型/
export const getVcirceDetail = (microcircleId: number) => {
  return request.post({ url: '/api/SyOperationController/selEassyInfo', params: { microcircleId } })
}
//查询微圈树分类
export const tree = () => {
  return request.post({ url: '/api/SyteacherSelController/selActicleCategraySelect'})
}
//审核修改
export const updateForum = (params: any) => {
  return request.post({ url: '/api/SyteacherSelController/updateForum',params})
}

export const delectForum = (params: any) => {
  return request.post({ url: '/api/SyteacherSelController/delectForum', params})
}
